#ifndef XRENDER_TARGET_H
#define XRENDER_TARGET_H
#include "Texture.h"

class RenderTarget
{
	friend class DXDevice;
	friend class DXDeviceWP8;
	ID3D11RenderTargetView* renderTargetView;
	ID3D11DepthStencilView* depthStencilView;
	Texture* colorTexture;
	Texture* depthStencilTexture;
	char* name;
public:
	RenderTarget(const char* name, int width, int height, bool depthStencil = true, int aa = 0);
	RenderTarget(const char* name)
	{
		this->name  = new char[strlen(name) + 1];
		strcpy(this->name, name);
	}
	~RenderTarget();
	Texture* GetColorTexture() {return colorTexture;}
	Texture* GetDepthStencilTexture() {return depthStencilTexture;}
};
#endif